# configure.ac

AC_INIT([Beeb Spriter], [0.1])
AC_CONFIG_SRCDIR([src/beeb-spriter.vala])
AC_CONFIG_HEADERS([config.h])

AM_INIT_AUTOMAKE([no-dist-gzip dist-bzip2])

# Enable silent rules is available
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])

AM_MAINTAINER_MODE

AC_PROG_CC
AC_PROG_CC_STDC
AM_PROG_VALAC([0.7.0])
AC_PROG_INSTALL
AC_PROG_INTLTOOL([0.35])

pkg_modules="gtk+-2.0 >= 2.14.0 gee-1.0 >= 0.1.0 libxml-2.0 >= 2.7.7"
BEEB_SPRITER_PACKAGES="--pkg gtk+-2.0 --pkg gio-2.0 --pkg gee-1.0 --pkg cairo --pkg libxml-2.0"
PKG_CHECK_MODULES(BEEB_SPRITER, [$pkg_modules])
AC_SUBST(BEEB_SPRITER_CFLAGS)
AC_SUBST(BEEB_SPRITER_LIBS)
AC_SUBST(BEEB_SPRITER_PACKAGES)

GETTEXT_PACKAGE=beeb-spriter
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"], [Gettext Package])
AC_SUBST(GETTEXT_PACKAGE)
AM_GNU_GETTEXT_VERSION([1.11])
AM_GLIB_GNU_GETTEXT

AC_CONFIG_FILES([
	Makefile
	data/beeb-spriter.desktop.in
	data/Makefile
	data/icons/Makefile
	data/icons/16x16/Makefile
	data/icons/16x16/apps/Makefile
	data/icons/22x22/Makefile
	data/icons/22x22/apps/Makefile
	data/icons/24x24/Makefile
	data/icons/24x24/apps/Makefile
	data/icons/32x32/Makefile
	data/icons/32x32/apps/Makefile
	data/icons/48x48/Makefile
	data/icons/48x48/apps/Makefile
	data/icons/scalable/Makefile
	data/icons/scalable/apps/Makefile
	data/images/Makefile
	data/licence/Makefile
	po/Makefile.in
	src/Makefile
	vapi/Makefile
])
AC_OUTPUT
